//package com.xxh.springclouddemo.consumer.service;
//
//import com.xxh.springclouddemo.common.pojo.Student;
//import com.xxh.springclouddemo.consumer.interfaceApi.OpenfeignApi;
//import org.springframework.stereotype.Component;
//
//import java.util.ArrayList;
//import java.util.List;
//
///**
// * openfeign 容错方式一
// * @Author xxh
// * @Date 2024/4/14 16:20
// */
//@Component
//public class OpenfeignApiEx implements OpenfeignApi {
//
//
//    @Override
//    public List<Student> getStudent() {
//        Student student = new Student();
//        student.setName("异常啦！！！！！");
//
//        List<Student> studentList = new ArrayList<>();
//        studentList.add(student);
//
//        return studentList;
//    }
//}
